extends StateBase

##状态所属
@export var enemy: BaseEnemy

func enter() -> void:
	super.enter()
	enemy.animation_player.play("spatial_transition")

func physics_process_update(delta: float) -> void:
	super.physics_process_update(delta)
	if state_machine.state_time < 0.5:
		enemy.move(enemy.VELOCITY, enemy.SPATIAL_TRANSITION_SPEED)
	else:
		state_machine.change_state("SpatialTransitionEnd")
